<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>简单动画页面</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Arial', sans-serif;
        }

        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .container {
            max-width: 800px;
            width: 100%;
            margin: 0 auto;
        }

        h1 {
            text-align: center;
            margin-bottom: 40px;
            color: #333;
            font-size: 2.5rem;
            animation: fadeIn 1.5s ease-out;
        }

        .animation-box {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
        }

        .animation-card {
            background: white;
            border-radius: 10px;
            width: 180px;
            height: 180px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .animation-card:hover {
            transform: translateY(-5px);
        }

        .card-title {
            position: absolute;
            bottom: 15px;
            left: 0;
            right: 0;
            text-align: center;
            color: #555;
            font-weight: bold;
        }

        /* 动画1: 跳动球 */
        .bouncing-ball {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
            animation: bounce 1.5s infinite alternate;
        }

        /* 动画2: 旋转方块 */
        .rotating-box {
            width: 60px;
            height: 60px;
            background: linear-gradient(45deg, #a1c4fd 0%, #c2e9fb 100%);
            animation: rotate 3s linear infinite;
        }

        /* 动画3: 脉动心形 */
        .pulsing-heart {
            width: 50px;
            height: 50px;
            background-color: #ff6b6b;
            transform: rotate(45deg);
            animation: pulse 1.5s ease infinite;
        }

        .pulsing-heart:before,
        .pulsing-heart:after {
            content: "";
            width: 50px;
            height: 50px;
            background-color: #ff6b6b;
            border-radius: 50%;
            position: absolute;
        }

        .pulsing-heart:before {
            top: -25px;
            left: 0;
        }

        .pulsing-heart:after {
            top: 0;
            left: -25px;
        }

        /* 动画4: 浮动云 */
        .floating-cloud {
            width: 80px;
            height: 40px;
            background: #fff;
            border-radius: 40px;
            position: relative;
            animation: float 4s ease-in-out infinite;
        }

        .floating-cloud:before,
        .floating-cloud:after {
            content: "";
            position: absolute;
            background: #fff;
            border-radius: 50%;
        }

        .floating-cloud:before {
            width: 30px;
            height: 30px;
            top: -15px;
            left: 15px;
        }

        .floating-cloud:after {
            width: 20px;
            height: 20px;
            top: -10px;
            right: 15px;
        }

        /* 动画5: 加载动画 */
        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 5px solid rgba(100, 149, 237, 0.2);
            border-top: 5px solid #6495ed;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        /* 动画6: 渐显文字 */
        .fade-text {
            opacity: 0;
            animation: fadeIn 2s forwards 0.5s;
            font-size: 1.2rem;
            color: #555;
        }

        /* 动画定义 */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes bounce {
            from { transform: translateY(0); }
            to { transform: translateY(-30px); }
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        @keyframes pulse {
            0% { transform: rotate(45deg) scale(1); }
            50% { transform: rotate(45deg) scale(1.2); }
            100% { transform: rotate(45deg) scale(1); }
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-20px); }
        }

        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        footer {
            margin-top: 50px;
            text-align: center;
            color: #666;
            animation: fadeIn 2s forwards 1s;
            opacity: 0;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>CSS动画示例 - {{ title }}</h1>

        <div class="animation-box">
            <div class="animation-card">
                <div class="bouncing-ball"></div>
                <div class="card-title">跳动球</div>
            </div>

            <div class="animation-card">
                <div class="rotating-box"></div>
                <div class="card-title">旋转方块</div>
            </div>

            <div class="animation-card">
                <div class="pulsing-heart"></div>
                <div class="card-title">脉动心形</div>
            </div>

            <div class="animation-card">
                <div class="floating-cloud"></div>
                <div class="card-title">浮动云</div>
            </div>

            <div class="animation-card">
                <div class="loading-spinner"></div>
                <div class="card-title">加载动画</div>
            </div>

            <div class="animation-card">
                <div class="fade-text">渐显文字</div>
                <div class="card-title">文字动画</div>
            </div>
        </div>

        <footer>
            <p>鼠标悬停在卡片上查看悬浮效果</p>
            <p>© 2023 简单动画页面</p>
        </footer>
    </div>
</body>
</html>